import terser from "@rollup/plugin-terser";
import { babel } from "@rollup/plugin-babel";

export default {
  input: "./index.js",
  output: [
    {
      name: "index",
      file: "./dist/index.esm.js",
      format: "es",
    },
  ],
  plugins: [
    terser(),
    babel({
      babelHelpers: "bundled",
      presets: ["@babel/preset-env"],
    }),
  ],
  external: ["WxmpRsa"],
};
